package com.example.demo.db;

import com.alibaba.druid.pool.DruidDataSource;

/**
 * @author Hyman.huang
 * @create 2023-07-13-17:28
 */
/*public class DruidUtil {
    public void switchDB(DataSourceModel dataSourceModel){
        DruidDataSource dataSource = new DruidDataSource();
        dataSource.setDriverClassName(dataSourceModel.getDriverClassName());
        dataSource.setUrl(dataSourceModel.getUrl());
        dataSource.setUsername(dataSourceModel.getUsername());
        dataSource.setPassword(dataSourceModel.getPassword());
        DynamicDataSourceHandler.setDataSource(dataSource);
    }
}*/
